package com.plugin.sharding;

import lombok.Data;

@Data
public class ShardingTable {
	private String logicTableName;
	private String shardingColumn;
	private CommonTableShardingAlgorithm<?> shardingAlgorithm;
	public ShardingTable(String shardingColumn,
			CommonTableShardingAlgorithm<?> shardingAlgorithm) {
		this.logicTableName = shardingAlgorithm.getLogicTableName();
		this.shardingColumn = shardingColumn;
		this.shardingAlgorithm = shardingAlgorithm;
	}
	
}
